# Author: Chris Moyer
import marajo
from marajo.appengine.handlers import RequestHandler

import logging
log = logging.getLogger("marajo.handlers.auth")

marajo.config['handlers'].append( { "url": "/_ah/logout", "handler": "marajo.appengine.handlers.auth.LogoutHandler" })

class LogoutHandler(RequestHandler):
    """
    Logout the user
    """

    def get(self):
        self.session['user'] = None
        return self.redirect(self.request.get("continue", "/"))
